package cn.com.dycc.sys_manage.usersysmanagement.entity;

import java.io.Serializable;


public class UserChildAccountInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7432224427514804653L;
	
	private String id;			//子表序号
	private String user_id;		//主表id
	private String account;		//账户
//	private String usable;
	private String class_no;	//职务
	private String post_no;		//岗位
	private String dept_no;		//所属部门
	private String top_dept_no;	//所属单位
	
	public UserChildAccountInfo(){}
	
	public UserChildAccountInfo(String id, String user_id, String account, String class_no, String post_no,
			String dept_no, String top_dept_no) {
		super();
		this.id = id;
		this.user_id = user_id;
		this.account = account;
		this.class_no = class_no;
		this.post_no = post_no;
		this.dept_no = dept_no;
		this.top_dept_no = top_dept_no;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getClass_no() {
		return class_no;
	}
	public void setClass_no(String class_no) {
		this.class_no = class_no;
	}
	public String getPost_no() {
		return post_no;
	}
	public void setPost_no(String post_no) {
		this.post_no = post_no;
	}
	public String getDept_no() {
		return dept_no;
	}
	public void setDept_no(String dept_no) {
		this.dept_no = dept_no;
	}
	public String getTop_dept_no() {
		return top_dept_no;
	}
	public void setTop_dept_no(String top_dept_no) {
		this.top_dept_no = top_dept_no;
	}
	@Override
	public String toString() {
		return "UserChildAccountInfo [id=" + id + ", user_id=" + user_id + ", account=" + account + ", class_no="
				+ class_no + ", post_no=" + post_no + ", dept_no=" + dept_no + ", top_dept_no=" + top_dept_no + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserChildAccountInfo other = (UserChildAccountInfo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	


}
